home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 1
/
MacMania 1.toast
/
Educational
/
Travel
/
Las Vegas
/
background_3289.txt
< prev
next >
Wrap
Text File
|
1990-08-22
|
2KB
|
76 lines
-- background: 3289 from stack: in
-- bmap block id: 4842
-- flags: 0000
-- background id: 0
-- name:
----- HyperTalk script -----
-- These background scripts handle check-boxes on a background by
-- storing the settings of the check-boxes in a hidden field called
-- "checks" and setting and resetting them on open and close card.
--
on newCard
repeat with i=1 to the number of background buttons
put "true" & return after field "checks"
end repeat
end newCard
on openCard
set cursor to 4 -- wristwatch
repeat with i=1 to the number of background buttons
set the hilite of background button i to (line i of field "checks" is true)
end repeat
set cursor to 1 -- browse tool
end openCard
on closeCard
set cursor to 4 -- wristwatch
repeat with i=1 to the number of background buttons
get hilite of background button i
put it into line i of field "checks"
end repeat
set cursor to 1 -- browse tool
end closeCard
on newStack
newCard
end newStack
on openBackground
push recent card
end openBackground
-- part 47 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=13 top=300 right=329 bottom=45
-- title width / last selected line: 0
-- icon id / first selected line: 21700 / 21700
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
visual effect iris open
go Home
end mouseUp
-- part 48 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=477 top=52 right=329 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 10
-- part name: Checks